home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / e / misc.save / 000076_fdc@panix.com_Fri Feb 16 15:52:43 2007.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Path: reader2.panix.com!panix!not-for-mail
  2. From: Frank da Cruz <fdc@panix.com>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: SSL Solaris 9 compile errors
  5. Date: Fri, 16 Feb 2007 20:52:32 +0000 (UTC)
  6. Organization: PANIX Public Access Internet and UNIX, NYC
  7. Lines: 73
  8. Message-ID: <slrnetc6ch.8ae.fdc@panix1.panix.com>
  9. References: <1171461754.452734.293090@a75g2000cwd.googlegroups.com> <slrnet6bnr.t17.fdc@panix1.panix.com> <1171474573.115000.277200@v45g2000cwv.googlegroups.com> <slrnet95nd.1b6.fdc@panix2.panix.com> <1171585254.113397.40400@v33g2000cwv.googlegroups.com>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: panix1.panix.com
  12. X-Trace: reader2.panix.com 1171659152 3720 166.84.1.1 (16 Feb 2007 20:52:32 GMT)
  13. X-Complaints-To: abuse@panix.com
  14. NNTP-Posting-Date: Fri, 16 Feb 2007 20:52:32 +0000 (UTC)
  15. User-Agent: slrn/0.9.8.0 (NetBSD)
  16. Xref: panix comp.protocols.kermit.misc:15647
  17.  
  18. On 2007-02-16, Gary Quiring <gquiring@gmail.com> wrote:
  19. : On Feb 15, 12:22 pm, Frank da Cruz <f...@panix.com> wrote:
  20. :> On 2007-02-14, Gary Quiring <gquir...@gmail.com> wrote:
  21. :> : On Feb 14, 10:47 am, Frank da Cruz <f...@panix.com> wrote:
  22. :> :> On 2007-02-14, Gary Quiring <gquir...@gmail.com> wrote:
  23. :> :> : I am trying to compile kermit 8.0.211 with Solaris 9 (Sparc).  My
  24. :> :> : openssl ver is 0.9.8d
  25. :> ....
  26. :> :
  27. :> I have Solaris 9 here, with OpenSSL 0.9.8d, and "It Works For Me" (TM).
  28. :>
  29. :> To build C-Kermit with OpenSSL, you need to use one of the appropriate
  30. :> makefile targets (which you did), plus:
  31. :>
  32. :>  . If the OpenSSL version is 0.9.7 or greater (a point where the API
  33. :>    changed), you have to add -DOPENSSL_097 to CFLAGS (which can be
  34. :>    done as shown above);
  35. :>
  36. :>  . If the OpenSSL header files are not in /usr/local/ssl/include, you
  37. :>    have to change or override the definitions of "prefix" or "sslroot"
  38. :>    or SSLINCL in the makefile.
  39. :>
  40. :>  . If the OpenSSL libraries are not in /usr/local/ssl/lib, you
  41. :>    have to change or override the definitions of "prefix" or "sslroot"
  42. :>    or SSLLIB in the makefile.
  43. :>
  44. :> At Columbia, we have to do all these things, because around here (or maybe
  45. :> in Solaris in general) "/usr/local" is "deprecated": Here is the procedure:
  46. :>
  47. :>   export SSLINC=-I/opt/openssl-0.9.8d/include
  48. :>   export SSLLIB=-L/opt/openssl-0.9.8d/lib
  49. :>   export "KFLAGS=-DOPENSSL_097 -DCK_FORWARD_X -D_FILE_OFFSET_BITS=64"
  50. :>   make -e solaris9g+openssl+shadow+pam+zlib
  51. :>
  52. :> - Frank
  53. :
  54. : Still no luck.  My SSL location is /usr/local/ssl.  I set the
  55. : following:
  56. :
  57. : export SSLINC="-l/usr/local/ssl/include"
  58. : export SSLLIB="-L/usr/local/ssl/lib"
  59. :
  60. Well, this should be unnecessary because it's the default.
  61.  
  62. : export KFLAGS="-DOPENSSL_097 -DCK_FORWARD_X -D_FILE_OFFSET_BITS=64"
  63. :
  64. : Why is ck_ssl.h hardcoded for openssl directory?  I made a link for
  65. : openssl -> ssl in /usr/local but it still didn't work.
  66. :
  67. See below.  Not to get off on a tangent, but after decades already of dealing
  68. with the headaches of dealing with hardwired Unix (or DOS, or Windows, for
  69. that matter) directory names that are constantly changing makes me ever more
  70. nostalgic for the the "logical name" concept that was so effective in TOPS-10,
  71. TOPS-20, and to this day in VMS.
  72.  
  73. : gcc -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX (etc etc...)
  74. : ckcmai.c
  75. : In file included from ckcmai.c:607:
  76. : ck_ssl.h:35:26: openssl/comp.h: No such file or directory
  77. : ck_ssl.h:42:25: openssl/des.h: No such file or directory
  78. : ck_ssl.h:43:25: openssl/ssl.h: No such file or directory
  79. : (etc etc)
  80. :
  81.  
  82. Let's see.  You've told the compiler to look for include files in
  83. /usr/local/ssl/include.  That directory should contain an openssl directory,
  84. which, in turn, contains all the .h files.  If so, the build should work for
  85. you if you just do it like this (since your ssl tree is already in the
  86. default location):
  87.  
  88.   make KFLAGS=-DOPENSSL_097 solaris9g+openssl+shadow+pam+zlib
  89.  
  90. - Frank